package com.lsc.easyblog.Repository;

import com.lsc.easyblog.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Long> {
    @Query("select user from User user where user.userName=?1")
    User findByU_name(String u_name);
}
